package com.keba.lamp.complaint.vo.update;

import com.keba.basic.base.entity.SuperEntity;
import com.keba.lamp.complaint.vo.save.CaseFileVO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 表单修改方法VO
 * 诉讼状案件
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-03-28 22:53:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode
@Schema(description = "诉讼状案件")
public class CaseUpdateVO extends CaseFileVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 案件说明
     */
    @Schema(description = "案件说明")
    @Size(max = 2000, message = "案件说明长度不能超过{max}")
    private String remark;
    /**
     * 案件名称
     */
    @Schema(description = "案件名称")
    //@NotEmpty(message = "请填写案件名称")
    @Size(max = 100, message = "案件名称长度不能超过{max}")
    private String caseName;
    /**
     * 案件来源;[00-小程序 02-后台创建]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.CASE_SOURCE)
     */
    @Schema(description = "案件来源")
    @NotEmpty(message = "请填写案件来源")
    @Size(max = 10, message = "案件来源长度不能超过{max}")
    private String caseSource;
    /**
     * 案件状态;[00-草稿 10-已完成]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.CASE_STATE)
     */
    @Schema(description = "案件状态")
    @Size(max = 10, message = "案件状态长度不能超过{max}")
    private String caseState;
    /**
     * 案件类别;[01-贷款 99-其它]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.CASE_TYPE)
     */
    @Schema(description = "案件类别")
    @NotEmpty(message = "请填写案件类型")
    @Size(max = 10, message = "案件类别长度不能超过{max}")
    private String caseType;
    /**
     * 业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)
     */
    @NotEmpty(message = "请填写业务类型")
    @Schema(description = "业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)")
    @Size(max = 10, message = "业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)长度不能超过{max}")
    private String bizType;

    @Valid
    @Schema(description = "原告")
    @Size(min = 1, message = "请输入原告信息")
    private List<PlaintffUpdateVO> plaintffUpdateVOList;

    @Valid
    @Schema(description = "被告")
    @Size(min = 1, message = "请输入被告信息")
    private List<DefendantUpdateVO> defendantUpdateVOList;

    @Schema(description = "原告代理人")
    private List<AgentUpdateVO> plaintffAgentUpdateVOList;
    @Schema(description = "被告代理人")
    private List<AgentUpdateVO> defendantAgentUpdateVOList;

    @Schema(description = "渠道客户ID")
    private Long channelCustomerId;

    private Boolean updateGenerateCase;
    /**
     * 三方平台 [01咸鱼、02天猫、03抖音、04快手、20自营]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.THIRD_PLATFORM)
     */
    @Schema(description = "三方平台 [01咸鱼、02天猫、03抖音、04快手、20自营]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.THIRD_PLATFORM)")
    @Size(max = 10, message = "三方平台 [01咸鱼、02天猫、03抖音、04快手、20自营]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.THIRD_PLATFORM)长度不能超过{max}")
    private String thirdPlatform;
    /**
     * 客服人员
     */
    @Schema(description = "客服人员")
    private Long customerService;
    /**
     * 做单员
     */
    @Schema(description = "做单员")
    private Long orderProcessor;

    /**
     * 案件备注（不是[案件说明]字段，【案件说明】字段用的是remark）
     */
    @Schema(description = "案件备注（不是[案件说明]字段，【案件说明】字段用的是remark）")
    @Size(max = 255, message = "案件备注（不是[案件说明]字段，【案件说明】字段用的是remark）长度不能超过{max}")
    private String caseRemark;
}
